package com.wego.common.formatter;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * @className: LocalDateFormatter
 * @description: LocalDate转换器，自定义jsp标签使用
 * @author: Li Chuanwei
 * @date: 2023/07/09 20:56
 * @Company: Copyright [日期] by [作者或个人]
 **/
public class LocalDateFormatter {
    public static String formatLocalDate(LocalDate localDate, String pattern) {
        return localDate.format(DateTimeFormatter.ofPattern(pattern));
    }
}
